package com.sunlee.common.service.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunlee.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类映射表
 *
 * @TableName tb_product_category_mapping
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tb_product_category_mapping")
@Data
public class ProductCategoryMappingEntity extends BaseEntity implements Serializable {

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}